//
//  Database.h
//  YanMusicPlayer
//
//  Created by 1564335 on 15-6-16.
//  Copyright (c) 2015年 胡岩 All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "NameModel.h"
@interface Database : NSObject

+ (void)openDataBase;
+ (void)createTable;
+ (void)insertValue:(MusicModel *)model;
+ (void)deleteValue:(NSString *)songId;
+ (NSArray *)selectData:(NSString *)number;
+ (void)deleteValue:(NSString *)songId :(NSString *)name;
+ (void)deleteTableName:(NSString *)tableName;


+ (void)insertCustomValue:(MusicModel *)model :(NSString *)tableName;

+ (void)insertDownloadValue:(MusicModel *)model;
+ (void)deleteDownloadValue:(NSString *)songId;

+ (void)insertTableName:(NSString *)tableName :(NSString *)name;
+ (void)deleteTable:(NSString *)tableCount;
+ (NSArray *)selectTableName;
+ (NSArray *)selectDownloadData;

@end
